package com.ddpyjqtd.decorator.pancake.now;

public class DecoratorTest {

	public static void main(String[] args) {
		BasePancake pancake = new BasePancake();
		pancake.print();

		pancake = new BasePancakeEggDecorator(pancake);
		pancake.print();

		pancake = new BasePancakeEggDecorator(pancake);
		pancake.print();

		pancake = new BasePancakeHamDecorator(pancake);
		pancake.print();

		// 只需要定义好基本的套餐类型，那么可以随意组装，想怎么吃就怎么吃
	}
}
